#include "toggle.hpp"
#include "imgui.h"
#include "imgui_ext/ImGuiUtils.h"

void toggle::draw_self ()
{
    bool v = value_->get_boolean();
    if (ImGui::ToggleButton("##Value", &v)) {
        value_->set_boolean(v);
    }
}
